﻿using Avalonia.Controls;
using Avalonia.Interactivity;
using MusicFluent.Models;
using MusicFluent.Views;

namespace MusicFluent.Controls;

public partial class VisitorControl : UserControl
{
    public VisitorControl()
    {
        InitializeComponent();
    }

    private void LoginClick(object? sender, RoutedEventArgs e)
    {
        var window = ViewOpera.GetView<MainWindow>(this);
        window?.Logout();
    }
}